package com.blockchainenergy.info.line;

import com.blockchainenergy.common.CarbonTools;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class LineInfo {
    private Integer i;
    private Integer j;
    private Double[] inFlow;
    private Double[] outFlow;
    private List<LineWastage> lineWastage;
    private LinePlate linePlate;
    private Double[] routee;
    private List<LineWastage> wastageRecord;

    public LineInfo(Integer i,Integer j) throws Exception {
        this.i = i;
        this.j = j;
        this.inFlow = CarbonTools.routeinflow(i,j);
        this.outFlow = CarbonTools.routeoutflow(i,j);
        this.lineWastage = CarbonTools.currentwastage();
        this.linePlate = new LinePlate(i,j);
        this.routee = CarbonTools.routee(i,j);
        this.wastageRecord = CarbonTools.routewastagerecord(i,j);
    }
}
